<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>测试excel</title>
</head>
<body>
<h2><a href="http://127.0.0.1/excel/exportStudent">下载学生列表示例</a></h2>
<h2><a href="http://127.0.0.1/excel/exportStudentCSV">下载学生列表CSV示例</a></h2>
<h2><a href="http://127.0.0.1/excel/exportTeacher">下载班主任列表示例</a></h2>
<h2><a href="http://127.0.0.1/excel/exportCourse">下载课程列表示例</a></h2>
<h2><a href="http://127.0.0.1/excel/exportCompany">下载公司表示例</a></h2>
<h1>上传------------------</h1>

<form id="uploadForm" enctype="multipart/form-data">
    文件:<input id="file" type="file" name="file"/>
</form>
<button id="submit">提交</button>
<script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
<script>

    $("#submit").on("click", function () {
        let formData = new FormData($('#uploadForm')[0]);
        $.ajax({
            type: 'post',
            url: "http://192.168.1.104:10202/device/importOracleTerminalData",
            data: formData,
            cache: false,
            processData: false,
            contentType: false,
        }).success(function (data) {
            alert(data);
        })
    });

</script>
</body>
</html>